home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / smcpc.arc / HELLO.C < prev    next >
Text File  |  1988-01-19  |  512b  |  26 lines

  1. /*    hello.c    -  trivial program to demo "SMALLC-PC"
  2.  
  3. to compile :
  4.  
  5.     A>cpc
  6.         {input file : hello.c,
  7.          output file : hello.asm,
  8.          other options as desired; null "input" to end}
  9.  
  10.     A>masm hello;    {I believe ASM would also work; no macros in
  11.                     generated code.}
  12.  
  13.     A>link hello,,,cpclib;
  14.  
  15.     A>hello
  16.  
  17. */
  18.  
  19. #define    NL    13
  20.  
  21. main()
  22. {
  23.     puts("hello, world.");
  24.     putchar(NL);
  25. }
  26.